home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir37
/
custmn15.zip
/
CUSTOMMN.ZIP
/
CUSTOMMN.DOC
< prev
next >
Wrap
Text File
|
1993-02-21
|
56KB
|
1,519 lines
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Installing:
To install CustomMenu onto your system follow the
instructions in the README.DOC file included.
Loading the program
The program can be used in one of two ways, either as a
replacement for COMMAND.COM or as a "normal" program running
under COMMAND.COM. CustomMenu takes approx 3KB of resident
space, most of which, is used as buffers.
Option #1: Run as Shell (In Place of COMMAND.COM):
Be sure you make a backup system disk; FORMAT /S;
incase you have problems setting up CustomMenu as a
Shell. See your DOS Manual for more information on the
FORMAT command.
To run CustomMenu as a Shell you will need to add the
"SHELL=" command to your CONFIG.SYS file. The format
to use is: "SHELL=path\CUSTOMMN.COM /F /switches";
where "/switches" is one or more of the switches listed
on page 2. Note that the /F switch is required when
running CustomMenu as a shell. You should also create
the COMSPEC environment var to point to COMMAND.COM;
this way your current applications can shell a copy of
COMMAND.COM (such as the "Go to DOS" (Ctrl-F1-1) option
in WordPerfect).
NOTE: DOS 4.x has a bug in that the parameters
(switches) will have two garbage bytes inserted at the
location of the length of the path and program name+1.
To avoid this problem start a / Command before or
after this position, so that it will fall between
switches.
Several versions of DOS (pre 5.0) have problems with
the parameters passed with the command tail. You can
experiment, to see what works. You may need rearrange
or space the switches differently.
Option #2: Run from COMMAND.COM - The "NORMAL" way.
To run CustomMenu from COMMAND.COM type:
"path\CUSTOMMN /switches" where "path" is the path you
install CustomMenu in and "/switches" is one of the
switches listed on page 2.
1
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
The Switches:
/C: - Follow this switch (no space) with the path and
name.ext of the .CMD file to execute before running
CustomMenu. When Executing a .CMD file from the /C:
switch, 100 bytes are allocated for Variables,
regardless of the # definition.
/E: - Follow this switch (no space) with the path of the
.OVx files. This Switch is Required for DOS 2.x.
/M: - Follow this switch with the name of the .MN file to
load. Do not supply the .MN extension. .MN files
will be explained later. You can also set the MEN=
environment variable. The MEN variable overrides all
other settings.
/N - If this switch is used the user cannot Exit
CustomMenu via Alt-X and return to COMMAND.COM unless
the access level for the user is 255. If you are
running CustomMenu as the shell this switch has no
effect
/S: - Follow this switch with the number of bytes to
allocate for the environment. The default is 256.
The actual number of bytes allocated will always be
moved up to the next multiple of 16. Therefore 256
bytes will be round up to 272 actual bytes.
The "Interface" Environment
If your already using one of the existing menus and just want to
jump into adding a new item, skip to "Update/Create" below.
If you execute CustomMenu with no initial menu (/M) you will enter
the default screen for CustomMenu. First you are prompted for a
userid and password. Assuming you haven't already created other
user profiles, you'll need to sign-on as the userid "system" (The
userid "System" is a special ID that can never be deleted).
Whenever the special "system" id is used, it requires two passwords.
These passwords must be entered in sequence. The default passwords
are "pass1" and "pass2". These passwords can be changed with the
CUSTOMSC program. Passwords are NOT CaSe SiNsItIvE.
Now you will be sitting on a black and white screen with no color
and no menus just the date, time, and CustomMenu title. This is
where you and the users interface with the menus created. Since
there are no menus on the screen there is nothing to interface with.
At this point you could press ALT-L to load a existing menu, ESC to
enter another password, ALT-X to exit the program or F10 to enter
the "Update/Create" mode (explained on the next page).
2
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
The "Update/Create" Environment
To enter into the "Update/Create" mode press the F10 key from the
interface environment; the top status line will changed and the
cursor appear. You can only enter this mode if your access level is
255. The special system user has a level of 255.
The status line should be pretty clear, it just moved the date over
and added a set of numbers towards the left of the screen. The
number to the left represents the amount of total free memory (in
bytes) CustomMenu has allocated to it. The number to the right of
the "/" is the largest consecutive free block of memory.
Now the cursor is on the "current" menu. If there are no menus the
cursor is in the upper left hand corner of the work area. The work
area is the area between the top and bottom status line.
Certain commands work global and doesn't care what menu you are on,
other commands work on a specific menu. I will explain the commands
keys later on, for now I'll introduce you the menu file.
THE MENU FILE
The menu file contains all the information regarding the menus as
well as the system colors and options. Therefore, all system
information (except the data path and editor path) is specific to
each .MN file. If you do not save your work, the information you
changed or create will only be there until a .CMD, .C&E, or .BAT
file is executed or you exit the program, so be sure to save your
work before selecting any menu items that execute a program.
Pressing Alt-P in the "enter/update" environment allows you to input
the data path where all .MN, .CMD, .C&E and support files should
reside.
To delete a menu file use the DOS ERASE/DEL command. See your DOS
manual for more information on deleting files.
THE .CMD AND .C&E FILES
The .CMD and .C&E files are similar to DOS .BAT files; in
that they preform some type of processing and the ability
to execute a program. With CustomMenu you may execute a
program only through a .CMD, .C&E, or .BAT file.
The way a .BAT file is started is by executing COMMAND.COM
with the /C switch; therefore, when/if a program is
execute from a .BAT file, the amount of free memory will
be reduced by typically around 3Kb.
.CMD & .C&E files don't require any additional memory to
run, just the approx 3Kb used by the CustomMenu processor.
3
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
.C&E File
A .C&E file is a simple file that you may create with a
ASCII text editor or via ALT-7 in the update/create
environment (level1). The .C&E file can contain comments
and blank lines at the beginning or end of the file only.
The format for a .C&E files is:
Line1: Directory to change to.
Line2: Program to execute with the .EXTension and
any parameters.
Line1 and Line2 above must exist without any spaces or
comments between them. You may however place a comment or
blank lines before Line1. To place a comment in the file
the first character in the string must be a "*" astrict.
.CMD File
A .CMD file is like a small program. You can preform
certain tasks such as getting input, writing output, or
executing a program. You create it with a ASCII editor
the same as a .C&E file.
On the following page is the list of instructions a
.CMD file can contain. If you need some function that
is not available in a .CMD file but are, in a .BAT file
(such as piping) you may execute the .BAT file by
executing COMMAND.COM with the /C option set to the
.BAT file to use.
4
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
A .CMD file allows if statements. You enter them as
follows:
if( X=X ) command
executes command if X=X
ifn( X=X ) command
executes command if X<>X
note you may use ( >, <, <=, >=, ==, = )
A "*" in the first non-blank position a line indicates
this line as a comment.
Using Variables & Labels:
#num
You must supplied the #num at the beginning of
the file if you are going to use variables.
Add up the length of the variables and labels.
A label takes two bytes. if you do not supply
the #num all references to &var's will issue
an error.
For example, if you had a variable called &S that
was 10 bytes long and one label, say @END, you
would place #12 as the very first (non-comment)
line.
#define
You must define all your variables and labels. A
variable must be preceded with a "&" and all
labels a "@". You use the format &Var(length) or
@labelname. The variables must be defined before
the program body, but after the #num explained
above.
To end the definitions and start the program body
enter a "@" by itself.
For example, to define a variable S that was 10
bytes long and a label called END; you would code
the following.
#12 * set aside 12 bytes
#define
&S(10)
@END
@
5
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
The Commands:
All the commands are in the format "COMMAND()". You
must code the "(" and ")", unless otherwise noted.
bgColor(Color)
Set the current background color.
cd(Path)
Set current directory. Example: if the
Command "CD(c:\) is entered the current
directory will be the root of drive c:.
cls() or cls
Clear the screen.
copy( File, ToFile )
Copies file to a file named Tofile, if ToFile
exists it is overwritten.
del(File)
Delete a file.
echo(text), echoln(text) or echo('text') echoln('text')
Writes text to the screen in the current color.
If leading spaces are needed then use the "'". If
the ' is used then to print a "'" use must
supplied two. Example:
echo(' You''ve just pressed the &var key');
To print a & you need two (&&=&) just like the '';
Echoln is the same as Echo except it preforms an
CR/LF after the text is output.
To write &Vars with the echo/echoln command; A
&var, space, or | must follow it. If | follows a
&var the text to the right of the | is shifted
left to fill in the space.
To write a specific ASCII character do #asciinum.
#asccinum will be evaluated the ASCII char of
asciinum. It must be followed with a &var, space,
|, or #, otherwise you get what it says.
evaluate( &var = &var2 ) or evaluate( &var = Text )
assigns a value to a variable. Note that as in
the echo command, a &var, space, or | must follow
the var on the right side of the = .
exec( Program /parms )
Executes a program. The current directory is
searched first then the paths in the path=
6
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
statement will be searched if no path is
specified. You may use the < or > for redirection
while executing the program. The < or > must be
the last parameter.
fgColor(Color)
Set the current foreground color.
findfile( path/file.ext, &var [, type] )
finds the first occurrence of path/file.ext and
places it in the &var variable. If type (without
the []) is entered, files returned will be of only
that type. The valid types are "Files", and
"Dir".
findnext( &var )
Finds the next occurrence of the last findfile or
findnext command.
getenvstr(text,&var)
Gets a string that starts with text and places it
in &var.
getkey(&var) or getkey();
Reads the next key from the keyboard. If &var is
supplied then the key is assigned to &var. To
read capital letters only use GETUPKEY in place of
GETKEY.
getstr(&Var)
Input a string to &Var if the string is longer
than &Var then the string is truncated.
goto(@label)
branches to @label.
md(Path)
Make/Create a directory.
msg(ON or OFF)
If MSG(ON) (default) then when an error occurs
such as unable to rename file - you will receive a
message indicating this. If MSG(OFF) you won't.
The msg command is in effect until the next EXEC
command.
poscur(X,Y)
positions the cursor at the X,Y position.
rd(Path)
Remove a directory.
ren(Source,Target)
Rename the file named Source to Target.
7
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
rmvenv(text)
Removes ALL text in the environment that starts
with text. In other words rmvenv(path=) will
remove ALL strings that start with path=
toenv(text)
Outputs text to the environment. NOTE: All
strings should be in the format text=
Predefined &Variables
Certain variables have been predefined for you.
They are:
&User = user that executed this .CMD file
&RetCode = Return code from the last exec command.
&Error = Reflects the result of any of the I/O
commands. Non-Zero indicates an Error.
2 = file not found
3 = path not found
4 = Too many files
5 = access denied
15 = invalid drive
16 = cannot remove cur dir
17 = cannot rename across dirs
101 = Disk full
150 = Write protected
152 = drive not ready
158 = sector not found
8
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
*************************************
* This is an example of a .CMD file ******************************
*************************************
*
* This example will copy all the files in the C:\EXAMPLE
* directory to the current root directory.
*
* Note: Having comments will sightly slow down the
* execution of .CMD files. A better place to
* put this many comments would be at the bottom of
* the file.
******************************************************************
#37 Allocate space for are &Vars and labels
#define
&FromDir(11)
&FileName(12)
&ToDir(1)
&Answer(1)
@NextFile
@PauseAndExit
@CopyError
@DiskFull
@NotFound
@Done
@ Start processing .CMD file
fgcolor(15)
bgcolor(1)
cls
Evaluate( &FromDir = C:\Example\ )
Evaluate( &ToDir= \ )
findfile( &FromDir|*.*,&FileName,Files )
if(&Error>0) goto(@NotFound)
@nextfile
echoln(Copying &FromDir&FileName to &ToDir&FileName)
copy( &FromDir&FileName, &ToDir&FileName )
if(&Error=101) goto(@diskfull)
if(&Error>0) goto(@CopyError)
nextfile( &FileName )
if(&Error=0) goto(@NextFile)
echoln(DONE)
9
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
@PauseAndExit
echo(Press a key to continue...)
getkey()
goto(@done)
@notfound
echoln(No files to copy)
goto(@PauseAndExit)
@diskfull
echoln('DiskFull - A)bort or <Enter> to continue?')
getupkey(&Answer)
ifn(&Answer=A) ifn(&Answer=#13) goto(@DiskFull)
if(&answer=A) goto(@PauseAndExit)
goto(@NextFile)
@CopyError
echoln(Error-Copy Aborted)
goto(@PauseAndExit)
@Done
10
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
THE UPDATE/CREATE ENVIRONMENT COMMANDS
The "update/create" environment is split into different levels.
*Level one you select system options and menus.
*Level two you work in a menu.
*Level three you define the select fields characteristics
*Level four you color the select fields.
Note: You should not update a .MN file that will be used on
Color and Monochrome on a Monochrome because some of the
colors will be lost.
The commands for this environment will be explained in reference
format. You should go through each one the first time to get a feel
for what it can do.
Level One:
System Information:
Alt-A Toggles password protection. A message will
appear in the lower left corner of the screen
indicating if password protection is OFF, ON-
Med, ON-High, or ON-Alt.
If High is used the user must reenter his
password after each application is run,
whereas Med returns assuming the same user.
Alt uses the user ID in the environment var
USER; The user name must be all CAPS. If the
user has a password then he will be prompted
to enter it, otherwise the prompt will be
skipped. If password protection is off, the
user is automatically signed on as the userid
"System" and can therefore update and create
menus. For network environments, ALT mode is
the most popular. The MED is popular for
keeping the kids or friends out of certain
areas.
Alt-E - Evokes the Editor set with the Alt-Y command.
Alt-G - Allows you to setup the PROMPT windows.
While in this mode the following keys are
used.
Alt-B: Change color background.
Alt-C: Change border foreground.
Alt-F: Change color foreground.
Alt-J: Change border type.
Alt-M: Change highlight background.
Alt-N: Change highlight foreground.
Alt-R: Change shadow location.
11
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Alt-T: Change shadow type.
ESC : Done.
Alt-I - Allows you to setup the system backdrop type
and colors. Use the following keys:
Alt-A: Change "stars" foreground.
Alt-B: Change color background.
Alt-C: Change background character type.
Alt-E: Change top line foreground.
Alt-F: Change color foreground.
Alt-I: Change Standout foreground.
Alt-U: Change Standout background.
Alt-M: Change bottom line background.
Alt-N: Change bottom line foreground.
Alt-R: Change top line background.
Alt-S: Cycle through "stars" type.
ESC : Done.
Alt-K On screen mask. Allows you to select which
menus are to show on the screen. If marked
it is shown on the screen. Use the space
to toggle the tags. Pressing ESC aborts
changes. Enter/End returns to work screen.
While in this window you may use the
following keys:
Alt-B: Change color background.
Alt-C: Change border foreground.
Alt-F: Change color foreground.
Alt-J: Change border type.
Alt-M: Change highlight background.
Alt-N: Change highlight foreground.
Alt-R: Change shadow location.
Alt-T: Change shadow type.
Alt-L - Load a .MN file. The Current .MN file in
memory is replaced.
Alt-N Create a new menu window. Up to 200.
Alt-O - Gets a time out value for the menus. If this
value is zero the time out never occurs. When
a user is inactive for this amount of time,
and password protection is on, the system
prompts for a userid and password. If the
new user level is less than the previous user
a Shift-ESC is returned to the menu, if the
menu has the Stop Option "N".
Alt-P - Set data path. This will show you the
current data path and allow you to change it.
This is the path to all the .CMD, .C&E, and
.MN files. Install automatically sets this
12
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
to a sub-directory named DATA within the
installed directory.
Alt-S - Save a .MN file. Saves the .MN file. If a
.MN file with the same name currently exists,
it will be moved to a .BAK file.
Alt-U - Get the screen blank value. If this value is
0, the screen is never blanked. If a user
has no activity for the allotted amount of
time, the screen is blanked and exploding
boxes appear on the screen at intervals.
Alt-V - Toggle the return option. The return option,
when ON, will return a user to the option
they choose. A message appears in the lower
right corner indicating if it is OFF or ON.
Note that it won't return if the .MN file has
been altered sense it was loaded or if the
MEN environment variable is use and has
changed after the option was selected.
Alt-Y - Sets the path and name of a ASCII editor you
wish to use on-line. If your editor
is unable to find itself and needs the
directory to be changed, pre-fix the path
and program name with a ">" (greater than)
sign. You must supply the .EXTension.
ALT-7 - Create a C&E file. In the NAME field, enter
the name of the C&E file. The directory
field is the directory to change to and the
program field is the program and any
parameters to execute.
Menu Setup:
All of the following commands are preformed on the
current menu. The menu name will be displayed on the
first line.
Alt-B Changes the default background color.
Alt-C Changes the border foreground color.
Alt-D Delete the current menu.
Alt-F Changes the default foreground color.
Alt-J Change border types.
Alt-M Allows you to enter a name for the current
menu as well as supply the Shift-ESC/ESC stop
option. If the Shift-ESC/ESC stop option is
on (Y) then if the Shift-ESC key is pressed
it will stop at this menu. If the Shift-
ESC/ESC stop option is both (B) then in
addition to (Y) the ESC key will not backup
13
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
past this menu, although Shift-ESC will if is
originated on this menu.
In naming the menus, the only requirement is
that the Main Menu comes alphabetical first
(ie. AAAMAIN). When saved the menus will be
saved in alphabetic order.
Alt-R Change the shadows location.
Alt-T Change the shadow Type. Either Black or
Shadowed.
Alt-W Work in the current menu. This will bring
you to level 2.
Tab To next menu on screen.
Shift-Tab To previous menu on screen.
Left Shift
Arrows Move the window.
Right Shift
Arrows Expand/Contract window (Lower Right Corner).
14
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Level Two
When you enter level two a small house will appear in
the upper left corner of the screen. This house
represents the current colors to be used for hard
coloring. The default color is always the current
background and foreground of the menu.
Level two is where you can design what you want the
menu to look like on the inside. It's where you enter
the wording for the menu options, create boxes, lines,
color, etc. It is similar to using a text editor.
The following keys have are used in level two:
Alt-A Allows access to the border area of the menu.
Pressing it again will disallow access.
Alt-B Change the background color for coloring.
Alt-F Change the foreground color for coloring.
Note: for ALT-B and ALT-F watch the house in
the upper left corner of the screen.
Alt-W Work on the select field(s) characteristics.
This takes you to level three.
Alt-I Insert a line at the current horizontal
position. (The border area is always moved)
This deletes the information on the bottom of
the menu.
Alt-L Enter line draw mode. In line draw mode a
character appears over the small house in
the upper left corner of the screen. This
character represents the current drawing
character. To change it press the keys 1
through 9. Selecting key 0 will erase as it
draws.
To move the cursor without drawing hold
a shift key while using the cursor keys.
Shft-Del Will allow delete. To exit the Line draw
mode press F10.
Alt-Y Delete a line at the current horizontal
position then move lines up one. (The border
area is always moved)
Home To the beginning of the line.
End To the End of the line.
15
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Del Delete at current position and adjust left.
Ins Toggle Ins Mode for Current Menu. if Cursor
is an Underline then insert mode is on
otherwise if the cursor is a block then it is
in typeover mode.
Shift-Del
Delete at current position and move right, no
adjusting.
Left Shift Arrows
Color using the current color, indicated by the small
house in the upper left corner of the screen. This is
to add effect or special colors to your menu.
Right Shift Arrows
Remove coloring and restore original color.
Ctrl Left Arrow
To beginning of previous word.
Ctrl Right Arrow
To beginning of next word.
To Exit Level Two press F10.
16
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Level Three
At level three you will setup what actions are to take
place within a menu. To start with, you will notice
the TO ID and TO MENU/RUN headings. These headings
have arrows beneath them representing your cursor keys;
in addition, the TO MENU/RUN has the Enter key too. In
the TO ID fields you enter which id to go to when that
pedicular key is pressed (See Alt-A below). The id's
are numbered on the left side of the screen, notice the
heading. In the TO MENU/RUN fields, you would enter
either the menu to go to or the .CMD, .C&E or .BAT file
to execute. If a menu and .CMD or .C&E file have the
same name, only the menu is used. In addition, the
follow codes are used preform certain tasks, they are
entered in the TO MENU/RUN fields.
"~" in the first position of the menu name causes
the current window to be removed before
transferring to the next.
"^" A caret returns the user to the previous
menu. This is the same as pressing the ESC
key.
"^?" A "^" followed by any character returns the
user to the previous menu, then emulates
pressing the character immediately following
the caret. If a quick key has been setup on
the previous menu it is activated. This
emulated key press will not press emulate
<enter> if it is to execute a .CMD,.C&E or
.BAT file. In this case, it will transfer
control to the id and then on the next key
press that moves to another id, it will
emulate <enter> once on that id.
">" a greater than sign in the first position of
the menu name causes the current menu to
be bypassed and go directly to the menu name
following the ">". No keys need to be hit,
this is automatic.
The Security level field is used only by the TO
MENU/RUN Fields. A users security level must be equal
to or greater than this field or the user will be
denied access. The Show Menu field is used to display
a alternate menu on the screen while the user is on
this id. The alternate menu is only displayed and not
accessible. When the user goes to the next id or menu
this menu is removed from the screen. If the name of
the Menu in this field begins with a "1" then the menu
won't be displayed unless the F1 key is pressed.
17
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
The Hot Key field allows you to enter a "hot key".
When a user press the key equal to this field, control
is passed directly to it then the Enter key
automatically is pressed.
The description field will be displayed on the bottom
of the screen when the user is on this id in the
interface environment.
The following is a list of keys that preform a function
in level three.
Alt-A: Auto Number TO ID Fields. Use Alt-S
to set the starting ID. This numbers
the TO ID Fields from the StartingID
to the current position in the current
column. Multiple columns should be
set separately. This assumes the
standard numbering scheme. Top to
Bottom.
Alt-B: Change color background.
Alt-E: Change title foreground.
Alt-F: Change color foreground.
Alt-J: Change Field Select foreground.
Alt-K: Change Field Select background.
Alt-M: Change highlight background.
Alt-N: Change highlight foreground.
Alt-R: Change title background.
Alt-S: Set Starting ID for Auto Numbering
feature. The Starting ID will be hi-
lighted in the current selection
colors.
Alt-W: Work on colors for this ID. This
transfers to level four.
ESC: If field data changed then restores
the previous information
F10: Done return to level two.
18
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Level Four
In Level four you will be presented with a screen which
looks like level two except a number indicating the
current id you are working on. This number is located
next to the small house which is indicating the current
color. Also any coloring you did in level two is
removed while this screen is displayed.
This is where you setup what colors you want to be
changed when the user is on this id. For example,
moving a high-light bar.
The following keys are used in level four:
Alt-B : Change the selected background color.
Alt-F : Change the selected foreground color.
Tab : Work on next ID.
Sh-Tab: Work on previous ID.
Sh-Lf
Arrows: Hard color for this ID.
Sh-Rt
Arrows: Erase hard coloring for this ID.
F10 : Done. Return to level three.
19
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Mouse
You may use a microsoft compatible mouse with
CustomMenu. If you are in the Update/Create Mode then
Moving the mouse emulates pressing the arrow keys,
Pressing the left button emulates the left shift and
the right button the right shift.
If you are in the Interface mode then point the mouse
cursor to the option you which to select and press the
left button. Pressing the Right button emulates the
ESC key and both buttons the Shift-Esc key.
SECURITY ISSUES:
The security feature of CustomMenu is used to keep
users from selecting options that they should not use.
It is convenient to keep friends, kids from selecting
options they shouldn't. With most BIOS's they allow to
boot from A: before C: so a user could just boot from
A:, but with the new BIOS's you can disable boot from
A: or change to look at C: first. Don't worry if your
hard drive fails you can still run setup and change it
to boot from A:.
Setting up user IDs and Passwords:
This is simply done with the CUSTOMSC.EXE program. It
also uses the data path in the file DATAPATH.MNU to
look for the security file if it is not found in the
current directory. The password used to enter
CUSTOMSC.EXE is the two "System" user id passwords.
Once you log in press F10 to access the Passwords.
You may use the ALT-F, ALT-B, etc to change the screen
colors.
UTILITIES:
MAP: This program will print all directory and programs on the
disk(.EXE & .COM). To print the list to the printer use the
> redirection parameter ie. "FILEMAP > PRN:".
MAKEMENU - The Auto Make Feature.
There are a few .MN File supplied that you can use to either
replace the codes or use with the AUTO-MAKE feature.
To automatically create a menu interface change to the directory
you installed CustomMenu on and type MAKEMENU <MenuFile>; where
<MenuFile> is the .MN file to use. See the file list at the end
of this document for the supplied .mn files.
The program will only build interfaces for the programs it knows.
If you wish to add programs to the list it uses, use a ASCII text
20
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
editor to update the file PRGLIST.DAT. The lowercase letter in
column "z" is the program type id; as supplied a=application,
g=games, u=utilities, p=programming, and z=command.com.
You may also wish to create your own .MN file and use the AUTO-
MAKE feature to fill in the blanks. To do this, enter a string
of at least ten characters matching the program type to be placed
in this location; do the same for the selection fields (in level
three). If you create a menu with multiple columns, the id's in
this case are numbered from left top to right bottom, therefore
you can not use the ALT-A (Auto Number) feature to build the ID
link.
Once a .MN file has been used with the AUTO-MAKE menu, it can NOT
be used again, therefore, be sure to have a backup of your .MN
file.
If you didn't setup the .MN file correctly, you will probably get
unwanted data on the screen and the system may lock up. If this
happens, reboot your system (even if you are able to use the
menu) and replace the bad file with the original (pre-MAKEMENU)
file then check where your error is.
21
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
FILE LIST:
install.bat - install batch file
cminstal.exe - program to preform the install
custommn.com - main resident program to drive system
custommn.ov2 - menu program
custommn.ovr - overlay for custommn.ov2
custommn.ov1 - .cmd file processor
customsc.exe - security maintenance program
filemap.com - map location of .com/.exe files
makemenu.exe - program to automate calling bldcmf and automake.exe
automake.exe - add .c&e/.cmd files to .mn file
bldcmf.exe - automatically builds .cmd or .c&e files
datapath.mnu - datapath description file
editor.mnu - editor description file
userinfo.mnp - security data
seccolor.mnc - security maintenance colors
prglist.dat - list of programs and descriptions.
delit.bat - batch file to delete un-needed files
custommn.doc - this document.
printdoc.bat - batch file to print this document.
sync.exe - sync files
menu01.mn - A overlay style menu.
menu02.mn - A bar/pull down style menu.
menu03.mn - A better overlay style menu
22
C u s t o m M e n u
Documentation
-----------------------------------------------------------------
Update for version 1.3
Added .BAT file support. Shell's a copy of COMMAND.COM /C
(.BAT file needs to be in path)
Changed menu03
Fixed C&E files to update full path in environment.
Added support for C&E files to pass parms.
Sync runs automatically with install
Sync will create it's own unique chars if none supplied
Userinfo.mnp installed to main dir instead of data dir
Added update for install
SYNC.EXE added to DELIT.BAT
Created the MAKEMENU program instead of MAKEMENU.BAT
Misc other changes
Update for version 1.4
Added ALT-7 - create C&E file.
Added drive to path in environment if path supplied without one.
Allowed the F10 key to exit most functions.
Check C&E program name and display error if not found.
Sync looks in DATA path for files it needs also.
command.cmd already created.
MakeMenu can search multiple drives.
Update for version 1.5 (day after 1.4)
Fixed problem with the new ALT-7 - wasn't updating back to current
menu which would cause the level 3,4 information to disappear. Sorry
about that.
23